package com.njtoyo.taxi.admin.mapper.master.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import com.njtoyo.taxi.admin.mapper.master.enums.DriverScoreLogCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverScoreLogInOut;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 司机分数流水表
 * </p>
 *
 * @author Dell
 * @since 2021-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DriverScoreLog对象", description="司机分数流水表")
public class DriverScoreLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "司机ID")
    private Long driverId;

    @ApiModelProperty(value = "加减分类型 0:add[加分],1:deduct[扣分]")
    private DriverScoreLogInOut inOut;

    @ApiModelProperty(value = "类型 0:ride_marking[行程评价],1:score_deduct[司机扣分]")
    private DriverScoreLogCategory category;

    @ApiModelProperty(value = "分数")
    private BigDecimal score;

    @ApiModelProperty(value = "外键Id")
    private Long refId;

    @ApiModelProperty(value = "是否可用")
    private Boolean isAvailable;

    @ApiModelProperty(value = "开始时间")
    private Date startAt;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    private Date updatedAt;


}
